(function () {
	var pars     = [0,'Фестиваль начнется через %D% дня, %H% часов, %M% минут','2012','8','5','12','00','01'];
	var strttext = pars[1];
	var now      = new Date();
	var y2k      = new Date(parseInt(pars[2]), parseInt(pars[3]) - 1, parseInt(pars[4]), parseInt(pars[5]));
	var days     = Math.floor((y2k - now) / 1000 / 60 / 60 / 24);
	var hours    = Math.floor((y2k - now) / 1000 / 60 / 60 - (24 * days));
	var minutes  = Math.floor((y2k - now) / 1000 / 60 - (24 * 60 * days) - (60 * hours));
	var seconds  = Math.floor((y2k - now) / 1000 - (24 * 60 * 60 * days) - (60 * 60 * hours) - (60 * minutes));
	strttext = strttext.replace('%D%', days);
	strttext = strttext.replace('%H%', hours);
	strttext = strttext.replace('%M%', minutes);
	strttext = strttext.replace('%S%', seconds);
	document.write(strttext);
})();